export const getDataThroughCallback = fn => {
  setTimeout(() => {
    fn({
      name: 'webyouxuan'
    })
  }, 1000);
}

export const getDataThroughPromise = () => {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve({
        name: "webyouxuan"
      })
    }, 1000);
  })
}